package com.fowo.api.syncLingxingApi.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@DS("ds24")
@Data
@TableName(value = "tmp_sync_lingxing_to_spu_info_sku_list", autoResultMap = true)
public class TmpSyncLingxingToSpuInfoSkuList extends TmpSyncLingxingToSpuBase implements Serializable {
    private static final long serialVersionUID = 1L;

    public TmpSyncLingxingToSpuInfoSkuList() {
        super();
    }
    @Schema(title = "父级id")
    @TableField("parent_id")
    private Long parentId;

    @Schema(title = "属性列表")
    @TableField("attribute")
    @JSONField(name = "attribute")
    private String attribute;

    @Schema(title = "属性列表")
    @TableField("attribute_mirror")
    private String attributeMirror;

    @Schema(title = "产品id")
    @TableField("product_id")
    @JSONField(name = "product_id")
    private Long productId;

    @Schema(title = "sku")
    @TableField("sku")
    @JSONField(name = "sku")
    private String sku;

    @Schema(title = "产品名称", example = "红色M号T恤")
    @TableField("product_name")
    @JSONField(name = "product_name")
    private String productName;


    @Schema(title = "产品图片链接")
    @TableField("pic_url")
    @JSONField(name = "pic_url")
    private String picUrl;

    @TableField(value = "pic_url_mirror", typeHandler = JacksonTypeHandler.class)
    @Schema(title = "产品图片链接")
    private List<SysFile> picUrlMirror;


    @Schema(title = "产品图片链接")
    @TableField("pic_list")
    @JSONField(name = "pic_list")
    private String picList;

    @TableField(value = "pic_list_mirror", typeHandler = JacksonTypeHandler.class)
    @Schema(title = "产品图片链接")
    private List<SysFile> picListMirror;


}



